jsdom = require('jsdom')

// 生成jsdom对象
const {JSDOM} = jsdom;

const dom = new JSDOM(`<!DOCTYPE html><p>Hello world</p>`);


console.log(dom.window.document.querySelector("p").textContent);

